//
//  SSFirstPageTravelCell.m
//  Travel_World
//
//  Created by dlios on 15/10/13.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "SSFirstPageTravelCell.h"

@implementation SSFirstPageTravelCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.LeftImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.LeftImageView];
        
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.titleLabel];
        
        self.authorLabel = [[UILabel alloc] init];
        self.authorLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.authorLabel];
        
        self.seeLabel = [[UILabel alloc] init];
        self.seeLabel.font = [UIFont systemFontOfSize:10];
        [self.contentView addSubview:self.seeLabel];
        
        self.informationLabel = [[UILabel alloc] init];
        self.informationLabel.font = [UIFont systemFontOfSize:10];
        [self.contentView addSubview:self.informationLabel];
    }
    
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.LeftImageView.frame = CGRectMake(5 * W, 10 * H, W * 120, H * 90);
    self.titleLabel.frame = CGRectMake(W * 130, H * 10, self.contentView.frame.size.width - W * 130, H * 40);
    self.authorLabel.frame = CGRectMake(W * 130, H * 60, self.contentView.frame.size.width - W * 130, H * 20);
    self.seeLabel.frame = CGRectMake(W * 130, H * 80, W * 50, H * 20);
    self.informationLabel.frame = CGRectMake(W * 180, H * 80, self.contentView.frame.size.width - W * 180, H * 20);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
